<template>
	<view class="page">
		<view class="wrapper">
			<view class="list">
				<view class="msg">
					<view class="top">
						<view class="type">
							{{notice.title}}
						</view>
						<view class="time">
							{{notice.created_at}}
						</view>
					</view>
					<view class="info">
						{{notice.content}}
					</view>
					<view class="btm">
						{{notice.author}}
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				notice: {}
			}
		},
		onLoad(opt) {
			this.$u.get('/notice/detail?id=' + opt.id).then(res => {
				this.notice = res.data.result.notice[0]
			})
		}
	}
</script>

<style lang="scss">
	.msg {
		background: #141439;
		padding: 30rpx;
		margin-top: 30rpx;
		font-size: 34rpx;
		border-radius: 10rpx;
		.top {
			display: flex;
			justify-content: space-between;
			color: #fff;
			margin-bottom: 30rpx;
		}
		.info {
			text-indent: 2em;
			line-height: 1.5;
		}
		.btm {
			margin: 30rpx 0;
			text-align: right;
		}
	}
</style>
